widget: Remove a popover special case
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 May 2019 19:06:40 +0000 (19:06 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:15 +0000 (20:25 +0000)
We never run this since GtkPopover has its
own size_allocate, anyway.

gtk/gtkwidget.c

index f385967f44f4176b270e5d29f630431a51b32ae1..8ce28fc715f0a1321a3c6bf25ad083a64c3f3024 100644 (file)
@@ -4641,19 +4641,6 @@ gtk_widget_real_size_allocate (GtkWidget *widget,
                                int        height,
                                int        baseline)
 {
-  GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
-
-  if (_gtk_widget_get_realized (widget) &&
-      _gtk_widget_get_has_surface (widget) &&
-      GTK_IS_POPOVER (widget))
-     {
-       GtkAllocation window_alloc;
-
-       gtk_widget_get_surface_allocation (widget, &window_alloc);
-       gdk_surface_move_resize (priv->surface,
-                               window_alloc.x, window_alloc.y,
-                               window_alloc.width, window_alloc.height);
-     }
 }
 
 /* translate initial/final into start/end */